function add(...args: number[]): number {
  return args.reduce((total, item) => total + item)
}

export { add }